import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js'

// 引入vuex的实例化对象
import store from './store/index.js'
//引入全局组件
import GlobalComDemo from './components/GlobalComDemo.vue'

const appInstance = createApp(App)
appInstance.component(GlobalComDemo.name,GlobalComDemo)
// 挂载路由
appInstance.use(router)
// 挂载vuex
appInstance.use(store)
appInstance.mount('#app')